<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
 <?php 
   require_once('system/dbConnect.php');
   require_once('system/MyFunc.php');
   connect();
  //编写sql语句
  $sql = 'select * from flower';
  $result = fetch_array($sql);
  ?>
<form action="doadd.php"  method="post">
<table align="center" width="80%" border=1> 
<caption>添加鲜花</caption>
  <tr>
  <td>鲜花标题</td>
  <td><input type="text" name="wn_title"  id="wn_title"size=30  >
  </td>
</tr>
<tr>
      <td><label for="wn_pic">鲜花图片文件名</label></td>
      <td><input type="file" name="wn_pic" id="wn_pic"></td>
    </tr>
</tr>
<tr>
  <td>鲜花产地</td>
  <td><input type="text" name="wn_place" size=30  id="wn_place" ></td>
</tr>
<tr>
      <td><label for="wn_intro">鲜花简介</label></td>
      <td><textarea name="wn_intro" rows="5"></textarea></td>
    </tr>
<tr>
  <td>添加鲜花的时间</td>
  <td><input type="date" name="wn_adddate" size=30 id="wn_adddate"></td>
</tr>
<tr>
  <td>点击量</td>
  <td><input type="text" name="wn_hint" size=30  id="wn_hint" ></td>
</tr>
    <tr>
       <td colspan="2" align="center">
       <input type="submit" name="submit" value="添加"></input>
       <!-- <input type="submit" name="submit" value="重置"></input> -->
      </td>
    </tr>
</table>
</body>
</html>
